package city;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 去城市旅游
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-2-5
 */
public class Travel {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"city/applicationContext.xml");
		City shanghai = (City) context.getBean("toShanghai");
		shanghai.introduce();
	}
}
